package com.example.cofeed.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.cofeed.App;
import com.example.cofeed.MainActivity;
import com.example.cofeed.R;
import com.example.cofeed.base.BaseActivity;
import com.umeng.analytics.MobclickAgent;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PaySuccessActivity extends BaseActivity {

    @BindView(R.id.tv_pay_desc)
    TextView mTvPayDesc;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_pay_success;
    }

    @Override
    protected void init(Bundle savedInstanceState, View container) {
        setMainTitle("支付成功");

    }


    @OnClick(R.id.tv_ok)
    public void onViewClicked() {
        App.getInstance().closeAllActivities();
        Intent intent = new Intent(mContext, MainActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);

    }

    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onResume(this);
    }

    @Override
    public void onPause() {
        super.onPause();
        MobclickAgent.onPause(this);
    }

}
